package com.yizhu.zczy.sms.service.impl;

import com.yizhu.zczy.common.utils.PageUtils;
import com.yizhu.zczy.common.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;


import com.yizhu.zczy.sms.dao.SmsDao;
import com.yizhu.zczy.sms.entity.SmsEntity;
import com.yizhu.zczy.sms.service.SmsService;


@Service
public class SmsServiceImpl extends ServiceImpl<SmsDao, SmsEntity> implements SmsService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<SmsEntity> page = this.page(
                new Query<SmsEntity>().getPage(params),
                new QueryWrapper<SmsEntity>()
        );

        return new PageUtils(page);
    }

}